/**
 * 首页横幅后端接口
 */

const router = require('express').Router()
const { json } = require('body-parser')
const db = require('../../../dbconfig')

router.get('/indexBanner',(req,res) => {
    let sql = "select * from indexBanner" // sql语句
    db.query(sql, (err, data) => {
        // console.log(data)
        res.send(JSON.stringify(data))
    })
})

module.exports = router